﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace Hotel_Project.Bean
{
    /// <summary>
    /// 菜单栏属性类
    /// </summary>
    internal class MenuStripDomain
    {
        
        public int Id { get; set; } 
        public int FId {  get; set; }
        public string Text {  get; set; }
        public string FromPath {  get; set; }
        public MenuStripDomain() { }
        public MenuStripDomain(int Id, int FId,string Text,string FromPath)
        {
            this.Id = Id;
            this.FId = FId;
            this.Text = Text;
            this.FromPath = FromPath;
        }
        public override bool Equals(object obj)
        {
            return obj is MenuStripDomain domain &&
                   Id == domain.Id;
        }

        public override int GetHashCode()
        {
            return 2108858624 + Id.GetHashCode();
        }
    }
}
